<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>宠物招领系统 - 注册</title>
    <!--外观-->
    <link rel="stylesheet" th:href="@{/system/css/adminlte.min.css}">
    <!--字体图标-->
    <link rel="stylesheet" th:href="@{/system/css/all.css}">
    <style>
        #background {
            width: auto;
            filter: brightness(100%);
        }

        .overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* 左上角是基础点，居中需要把矩形在移动 */
            z-index: 1; /* 确保覆盖在图片之上 */
        }

    </style>
</head>


<body class="hold-transition login-page" style="overflow: hidden;">
<img th:src="@{/system/img/login.jpg}" alt="背景图片" id="background">
<div class="login-box overlay">
    <!-- /.login-logo -->
    <div class="card" style="border-radius: 20px; background-color: rgba(255,255,255,0.6);">
        <div class="card-body login-card-body" style="border-radius: 20px; background-color: rgba(255,255,255,0.6);">

            <a th:href="@{/login}">已有账号</a>
            <div style="font-size: 50px; display: flex; justify-content: center;">
                <i class="nav-icon fa fa-paw" style="color: #ec951e"></i>
            </div>
            <h4 style="text-align: center; font-weight: bold; margin-top: 16px">
                欢迎使用宠物招领系统
            </h4>
            <p class="login-box-msg" id="errorMsg">
                注 册 新 用 户
            </p>

            <!-- 输入 -->
            <form id="registerForm">
                <div class="input-group mb-3">
                    <input type="text" class="form-control" placeholder="请输入手机号" name="loginId" id="loginId">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-user"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input type="password" class="form-control" placeholder="输入6-18位大小写字母、数字密码" name="loginPassword"
                           id="loginPassword">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input type="password" class="form-control" placeholder="请再次输入密码" name="loginPasswordRepeat"
                           id="loginPasswordRepeat">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-6">
                        <input type="text" class="form-control" name="verifyCode" placeholder="请输入验证码"
                               id="verifyCode">
                    </div>
                    <div class="col-6">
                        <img alt="单击图片刷新！" class="pointer" th:src="@{/common/captcha}"
                             onclick="this.src='/common/captcha?d='+new Date()*1" id="captcha">
                    </div>
                </div>
                <div style="text-align: center">
                    <button type="button" class="btn btn-info" style="width: 100%; margin-top: 30px;" id="register">注 册
                    </button>
                </div>
            </form>
        </div>
        <!-- /.login-card-body -->
    </div>
</div>
<!-- jQuery -->
<script th:src="@{/system/js/jquery.min.js}"></script>
<script th:src="@{/system/js/public.js}"></script>
<script th:src="@{/system/js/register.js}"></script>
</body>
</html>